package com.xxx.control.application

import com.blankj.utilcode.util.SPUtils
import com.xxx.control.constant.Constant

/**
 * Create by Sxl on 2024/7/1.
 */
object SetInfo {

    var offline :Boolean? = null

    fun isOffline() :Boolean{
        if (offline == null) {
            offline = SPUtils.getInstance().getBoolean(Constant.IS_OFFLINE, false)
        }
        return offline!!
    }

    fun setOffline(isOffline: Boolean) {
        this.offline = isOffline
        SPUtils.getInstance().put(Constant.IS_OFFLINE, isOffline)
    }


}